﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.BaseUser;
using ZLDC.Common.Estate;
using System.Data;

namespace ZLDC.Estate.PM
{
    public partial class EstateShowInfo : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) 
            {
                fdept.Value = this.info.m_sDeptName;
                fdeptId.Value = this.info.m_sDeptID;
                fUser.Value = this.info.m_sUserName;
                fUserId.Value = this.info.m_sUserID;
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType1(reason, true, "举报原因");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType1(advise, true, "建议处理");
                string deptid = Request.QueryString["deptid"].ToString();
                if (deptid != "0")
                {
                    ListItem item1 = new ListItem();
                    item1.Text = "请选择";
                    item1.Value = "";
                    ddlusername.Items.Insert(0, item1);

                    DataTable dt = ZLDC.Common.BaseUser.UserInfo.getGetManagerUsers(deptid, "");

                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        ListItem item = new ListItem();
                        item.Text = dt.Rows[i]["name"].ToString() +"  "+ dt.Rows[i]["station"].ToString();
                        item.Value = dt.Rows[i]["no"].ToString();
                        ddlusername.Items.Add(item);
                    }
                }
            }
        }
    }
}
